const net = require("net");
const socket = net.createConnection(
  {
    host: "localhost",
    port: 1111,
  },
  () => {
    console.log("链接成功");
  }
);
